#include "LightNode.h"
#include "IRenderer.h"

HashedString LightNode::Type() const
{
	return HashedString("LightNode");
}

void LightNode::Enable()
{
	Renderer->EnableLight(m_light);
	INode::Enable();
	Disable();
}

void LightNode::Disable()
{
	Renderer->DisableLight(m_light);
}

Light& LightNode::getLight()
{
	return m_light;
}